﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site_employees.Master" AutoEventWireup="true" CodeBehind="cancel_ticket.aspx.cs" Inherits="Bus_proj.website.cancel_ticket" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/Stylebuttoncss.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/textbox.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style3
        {
        }
        .style4
        {
            width: 470px;
        }
        .style5
        {
            height: 30px;
        }
        .style6
        {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" />
    </Triggers>
<fieldset class="el03">
<legend>ยกเลิกตั๋วโดยสาร</legend>
<fieldset class="el02">
<legend>ข้อมูลตั๋วโดยสาร</legend>
    <table class="style1">
        <tr>
            <td align="right" class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label1" runat="server" Text="เลขที่ตั๋วโดยสาร"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="150px" CssClass="textbox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                &nbsp;</td>
            <td>
                <asp:Button ID="Button1" runat="server" Height="51px" Text="ค้นหา" 
                    Width="109px" onclick="Button1_Click" CssClass="classname" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table> 
</fieldset>

    <asp:Panel ID="Panel1" runat="server" Visible="False">
    <fieldset class="el02">
    <legend>ตารางแสดงข้อมูลตั๋ว</legend>
    <table class="style1">
        <tr>
            <td align="center" class="style3">
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="Black" 
                    GridLines="Vertical" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" Font-Size="Medium" 
                    Width="696px">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="Sale_id" HeaderText="เลขตั๋วโดยสาร" />
                        <asp:BoundField DataField="Around_id" HeaderText="รอบเดินรถ" />
                        <asp:BoundField DataField="Around_date" HeaderText="วันที่เดินทาง" />
                        <asp:BoundField DataField="Route_source" HeaderText="ชื่อต้นทาง" />
                        <asp:BoundField DataField="Route_destination" HeaderText="ชื่อปลายทาง" />
                        <asp:BoundField DataField="Seat_no" HeaderText="ที่นั่ง" />
                    </Columns>
                    <EmptyDataTemplate>
                        <span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">
                        ไม่มี</span>ข้อมูลตั๋วในระบบ
                    </EmptyDataTemplate>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" class="style5">
                <asp:Button ID="Button2" runat="server" OnClientClick="return confirm('ยืนยันการทำรายการ')" onclick="Button2_Click" Text="คืนตั๋ว" 
                    Visible="False" Width="173px" Height="51px" CssClass="classname" />
            </td>
        </tr>
        <tr>
            <td align="center" class="style3">
                <asp:Label ID="Label2" runat="server" Text="ไม่มีข้อมูลตั๋วในระบบ" 
                    Visible="False" Font-Size="XX-Large"></asp:Label>
            </td>
        </tr>
        </table>
    </fieldset>
    </asp:Panel>

    <asp:Panel ID="Panel2" runat="server" Visible="False">
    <fieldset class="el02">
    <legend>ตารางแสดงข้อมูลตั๋ว</legend>
        <table class="style1">
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="4" Font-Size="Medium" ForeColor="Black" GridLines="Vertical" 
                        Width="689px">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Sale_id" HeaderText="เลขตั๋วโดยสาร" />
                            <asp:BoundField DataField="Around_id" HeaderText="รอบเดินรถ" />
                            <asp:BoundField DataField="Around_date" HeaderText="วันที่เดินทาง" />
                            <asp:BoundField DataField="Route_source" HeaderText="ชื่อต้นทาง" />
                            <asp:BoundField DataField="Route_destination" HeaderText="ชื่อปลายทาง" />
                            <asp:BoundField DataField="Seat_no" HeaderText="ที่นั่ง" />
                        </Columns>
                        <EmptyDataTemplate>
                            <span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">
                            ไม่มี</span>ข้อมูลตั๋วในระบบ
                        </EmptyDataTemplate>
                        <FooterStyle BackColor="#CCCC99" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#FBFBF2" />
                        <SortedAscendingHeaderStyle BackColor="#848384" />
                        <SortedDescendingCellStyle BackColor="#EAEAD3" />
                        <SortedDescendingHeaderStyle BackColor="#575357" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center" class="style6" colspan="2">
                    <asp:Button ID="Button3" runat="server" CssClass="classname" Height="51px" 
                        onclick="Button3_Click" OnClientClick="return confirm('ยืนยันการทำรายการ')" 
                        Text="คืนตั๋ว" Visible="False" Width="173px" />
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:Label ID="Label3" runat="server" Font-Size="XX-Large" 
                        Text="ไม่มีข้อมูลตั๋วในระบบ" Visible="False"></asp:Label>
                </td>
            </tr>
        </table>
       </fieldset>
    </asp:Panel>
</fieldset>
    </ContentTemplate>
    </asp:UpdatePanel>


</asp:Content>
